package com.handpay.nocardpay.baselibrary.raindrops.model.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by sxshi on 2018-4-23.
 */

public class AuthResult implements Parcelable {
    /**
     * 00=认证成功  02=认证失败
     */
    private String status;

    /**
     * 小雨点URL链接
     */
    private String xydUrl;

    /**
     * 小雨点场景上传Id
     */
    private String xrId;

    /**
     * 小雨点认证成功Token
     */
    private String accesstoken;

    /**
     * 描述
     */
    private String msg;


    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getXydUrl() {
        return xydUrl;
    }

    public void setXydUrl(String xydUrl) {
        this.xydUrl = xydUrl;
    }

    public String getXrId() {
        return xrId;
    }

    public void setXrId(String xrId) {
        this.xrId = xrId;
    }

    public String getAccesstoken() {
        return accesstoken;
    }

    public void setAccesstoken(String accesstoken) {
        this.accesstoken = accesstoken;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.status);
        dest.writeString(this.xydUrl);
        dest.writeString(this.xrId);
        dest.writeString(this.accesstoken);
        dest.writeString(this.msg);
    }

    public AuthResult() {
    }

    protected AuthResult(Parcel in) {
        this.status = in.readString();
        this.xydUrl = in.readString();
        this.xrId = in.readString();
        this.accesstoken = in.readString();
        this.msg = in.readString();
    }

    public static final Parcelable.Creator<AuthResult> CREATOR = new Parcelable.Creator<AuthResult>() {
        @Override
        public AuthResult createFromParcel(Parcel source) {
            return new AuthResult(source);
        }

        @Override
        public AuthResult[] newArray(int size) {
            return new AuthResult[size];
        }
    };

    @Override
    public String toString() {
        return "AuthResult{" +
                "status='" + status + '\'' +
                ", xydUrl='" + xydUrl + '\'' +
                ", xrId='" + xrId + '\'' +
                ", accesstoken='" + accesstoken + '\'' +
                ", msg='" + msg + '\'' +
                '}';
    }
}
